package com.xydtech.ecard.config.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xydtech.ecard.config.mapper.EcardDeptPackageOrgMapper;
import com.xydtech.ecard.config.domain.EcardDeptPackageOrg;
import com.xydtech.ecard.config.service.IEcardDeptPackageOrgService;
import com.xydtech.common.core.text.Convert;

/**
 * 包保配置Service业务层处理
 * 
 * @author JHON
 * @date 2022-07-22
 */
@Service
public class EcardDeptPackageOrgServiceImpl implements IEcardDeptPackageOrgService 
{
    @Autowired
    private EcardDeptPackageOrgMapper ecardDeptPackageOrgMapper;

    /**
     * 查询包保配置
     * 
     * @param id 包保配置主键
     * @return 包保配置
     */
    @Override
    public EcardDeptPackageOrg selectEcardDeptPackageOrgById(Long id)
    {
        return ecardDeptPackageOrgMapper.selectEcardDeptPackageOrgById(id);
    }

    /**
     * 查询包保配置列表
     * 
     * @param ecardDeptPackageOrg 包保配置
     * @return 包保配置
     */
    @Override
    public List<EcardDeptPackageOrg> selectEcardDeptPackageOrgList(EcardDeptPackageOrg ecardDeptPackageOrg)
    {
        return ecardDeptPackageOrgMapper.selectEcardDeptPackageOrgList(ecardDeptPackageOrg);
    }

    /**
     * 新增包保配置
     * 
     * @param ecardDeptPackageOrg 包保配置
     * @return 结果
     */
    @Override
    public int insertEcardDeptPackageOrg(EcardDeptPackageOrg ecardDeptPackageOrg)
    {
        return ecardDeptPackageOrgMapper.insertEcardDeptPackageOrg(ecardDeptPackageOrg);
    }

    /**
     * 修改包保配置
     * 
     * @param ecardDeptPackageOrg 包保配置
     * @return 结果
     */
    @Override
    public int updateEcardDeptPackageOrg(EcardDeptPackageOrg ecardDeptPackageOrg)
    {
        return ecardDeptPackageOrgMapper.updateEcardDeptPackageOrg(ecardDeptPackageOrg);
    }

    /**
     * 批量删除包保配置
     * 
     * @param ids 需要删除的包保配置主键
     * @return 结果
     */
    @Override
    public int deleteEcardDeptPackageOrgByIds(String ids)
    {
        return ecardDeptPackageOrgMapper.deleteEcardDeptPackageOrgByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除包保配置信息
     * 
     * @param id 包保配置主键
     * @return 结果
     */
    @Override
    public int deleteEcardDeptPackageOrgById(Long id)
    {
        return ecardDeptPackageOrgMapper.deleteEcardDeptPackageOrgById(id);
    }
}
